<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>demo01</title>
<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
</head>
<body>
    <div ng-app="" data-ng-init="appName='AppDemo'">
        <h2>
            <span data-ng-bind="appName"></span>
        </h2>
<xmp>
    <h2>
        <span data-ng-bind="appName"></span>
    </h2>
</xmp>
        <p>名字：<input type="text" ng-model="name" ng-init="name='Json'"></p>
        <H2>Hello {{name}}</H2>
<xmp>
    <p>名字：<input type="text" ng-model="name" ng-init="name='Json'"></p>
    <H2>Hello {{name}}</H2>
</xmp>
        <p>名称：<input type="text" ng-model="title" data-ng-init="title='标题'"></p>
        <H2>Hello1 {{title}}</H2>
<xmp>
    <p>名称：<input type="text" ng-model="title" data-ng-init="title='标题'"></p>
    <H2>Hello1 {{title}}</H2>
</xmp>
        <h2>表达式：{{5*5}}、{{5+5}}、{{5/2}}、{{5%2}}</h2>
<xmp>
    <h2>表达式：{ { 5*5 } }</h2>
</xmp>
    </div>
</body>
</html>